package com.douxg.fastCoding.web.dto;

import cn.hutool.core.util.StrUtil;
import com.douxg.fastCoding.web.entity.Enjoy;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Description
 * @Auther
 * @Date 2020-07-31 15:06
 */
@Data
@Accessors(chain = true)
public class EnjoyDto extends Enjoy {
    private String idFmt;
    private String startCreateTimeFmt;
    private String endCreateTimeFmt;

    public EnjoyDto setIdFmt(String idFmt) {
        this.idFmt = idFmt;
        if (StrUtil.isNotBlank(idFmt)) {
            super.setId(Long.parseLong(idFmt));
        }
        return this;
    }

}
